<!DOCTYPE html>
<html class="bootstrap-admin-vertical-centered" xmlns:th="http://www.thymeleaf.org" >
    <head>
        <title>仓库管理系统</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />

        <!-- Bootstrap -->
        <link rel="stylesheet" media="screen" href="css/bootstrap.min.css" />
        <link rel="stylesheet" media="screen" href="css/bootstrap-theme.min.css" />

        <!-- Bootstrap Admin Theme -->
        <link rel="stylesheet" media="screen" href="css/bootstrap-admin-theme.css" />

        <!-- Custom styles -->
        <style type="text/css">
            .alert{
                margin: 0 auto 20px;
            }
        </style>

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
           <script type="text/javascript" src="js/html5shiv.js"></script>
           <script type="text/javascript" src="js/respond.min.js"></script>
        <![endif]-->
    </head>
    <body class="bootstrap-admin-without-padding">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">                    
                    <form th:action="@{/login}" action="/login" method="POST" class="bootstrap-admin-login-form">
                        <h1>仓库管理系统</h1>
                        <div th:if="${param.logout}" class="has-success">
                            <p class="help-block">您已从系统退出</p>
                        </div>
                        <div th:if="${param.error}" class="has-error">
                            <p class="help-block">登录失败</p>
                        </div>                        
                        <div class="form-group">
                            <input class="form-control" type="text" name="username" placeholder="请输入账号" />
                        </div>
                        <div class="form-group">
                            <input class="form-control" type="password" name="password" placeholder="请输入口令" />
                        </div>
                        <div class="form-group">
                            <label>
                                <input type="checkbox" name="remember_me" />
                                下次自动登录
                            </label>
                        </div>
<!--                         <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/> -->
                        <button class="btn btn-primary" type="submit" style="width: 95px;">登录</button>
                    </form>
                </div>
            </div>
        </div>

        <script type="text/javascript" src="vendors/jquery-2.1.4.min.js"></script>
        <script type="text/javascript" src="js/bootstrap.min.js"></script>
        <script type="text/javascript">
            $(function() {
                // Setting focus
                $('input[name="username"]').focus();
            });
        </script>
    </body>
</html>